package vehicle;

/*
 * 子类：巴士类
 */

public class Bus extends Vehicle {
	private int count; // 载客人数

	public Bus() {

	}

	public Bus(String vehicleId, String type, int count) {
		super(vehicleId, type);
		this.count = count;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	// 重写父类的run（）方法
	public void run() {
		System.out.print("型号为" + this.getType() + "、车牌号为" + this.getVehicleId());
		System.out.println("、载客人数为" + this.getCount() + "的巴士在行驶！");
	}

}
